class MyClass
  
  def initialize( val )
    @my_var = val
  end
  
  def method
    return 32
  end
  
end

x = MyClass.new( 47 )
y = x.method
